package com.anrong.wulansdk.sdk.entity;


import com.anrong.orm.db.annotation.PrimaryKey;
import com.anrong.orm.db.annotation.Table;
import com.anrong.orm.db.enums.AssignType;

import java.io.Serializable;

@Table("event_info")
public class EventLog implements Serializable{


	public static  final  String SID="sid";
	public static  final  String DEVID="devId";
	public static  final  String USERID="userId";
	public static  final  String APPCODE="appCode";
	public static  final  String STAFFCODE="staffCode";
	public static  final  String LONGITUDE="longitude";
	public static  final  String LATITUDE="latitude";
	public static  final  String ALTITUDE="altitude";
	public static  final  String EVENTNAME="eventName";
	public static  final  String EVENTPATH="eventPath";
	public static  final  String EVENTDESC="eventDesc";
	public static  final  String STARTTIME="startTime";
	public static  final  String ENDTIME="endTime";
	public static  final  String RESULT="result";
	public static  final  String RESULTERR="resultErr";

	/** id */
	@PrimaryKey(AssignType.AUTO_INCREMENT)
	private long id;

	private String sid;//交易流水id
	
	private String devId;//设备唯一id,MDM中的设备唯一标识  /** 设备IMEI   Android:IMEI */
	private String userId;//用户标识,TF卡账号
	private String appCode;//应用标识,应用商店中应用的唯一标识
	private String staffCode;//登录app的警员号唯一标识
	
	private String mac;
	private String ip;
	
	private String longitude;//经度
	private String latitude;//纬度
	private String altitude;//高度
	
	private String eventName;//事件行为的简称
	private String eventPath;//事件触发模块路径,例如:主页/模块1/模块2/add
	private String eventDesc;//事件描述
	
	private long startTime;
	private long endTime;
	
	private String result;//结果,1成功，0失败
	private String resultErr;//result为失败的情况下，记录下失败的异常原因

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}
	
	public String getAppCode() {
		return appCode;
	}

	public void setStaffCode(String staffCode) {
		this.staffCode = staffCode;
	}
	
	public String getStaffCode() {
		return staffCode;
	}

	public void setDevId(String devId) {
		this.devId = devId;
	}
	
	public String getDevId() {
		return devId;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	public String getIp() {
		return ip;
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}

	public long getEndTime() {
		return endTime;
	}

	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getAltitude() {
		return altitude;
	}

	public void setAltitude(String altitude) {
		this.altitude = altitude;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getEventPath() {
		return eventPath;
	}

	public void setEventPath(String eventPath) {
		this.eventPath = eventPath;
	}

	public String getEventDesc() {
		return eventDesc;
	}

	public void setEventDesc(String eventDesc) {
		this.eventDesc = eventDesc;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getResultErr() {
		return resultErr;
	}

	public void setResultErr(String resultErr) {
		this.resultErr = resultErr;
	}

	public String toString() {
        return "[sid:"+this.sid+",appCode:"+this.appCode+",staffCode:"+this.staffCode+",devId:"+this.devId+",userId:"+this.userId+",ip:"+this.ip+",mac:"+this.mac+",startTime:"+this.startTime+",endTime:"+this.endTime+",longitude:"+this.longitude+",latitude:"+this.latitude
        		+",altitude:"+this.altitude+",eventName:"+this.eventName+",eventPath:"+this.eventPath+",eventDesc:"+this.eventDesc+",result:"+this.result+",resultErr:"+this.resultErr +"]";
    }
}